<script >
export
default {
  created() {
    console.log("发现朋友组件");
  }
};
</script>

<template>
<div>

<button @click="$router.push('/friend/son1')">跳转到son1</button>
<button @click="$router.push('/friend/son2')">跳转到son2</button>
<button @click="$router.push('/friend/son3')">跳转到son3</button>
  <div class="box">朋友关注

    <router-view></router-view>
  </div>
</div>
</template>

<style scoped>
.box {
  width: 100%;
  height: 200px;
  background-color: skyblue;
  border: 10px;
}
</style>